<template>
  <div>
    <el-card class="box-card">
      <div class="text item">
        <el-breadcrumb separator="/">
          <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
          <el-breadcrumb-item>活动列表</el-breadcrumb-item>
          <el-breadcrumb-item>活动详情</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
    </el-card>
    <el-card class="box-card">
      <div class="text item">
        <el-form label-width="80px">
          <el-row>
            <el-col :span="8">
              <el-form-item label="店铺名称">
                <el-input v-model="form.name" />
              </el-form-item>
              <div
                class="grid-content bg-purple"
              /></el-col>
            <el-col :span="8">
              <el-form-item label="用户名称">
                <el-input v-model="form.name" />
              </el-form-item>
              <div
                class="grid-content bg-purple-light"
              /></el-col>
            <el-col :span="8">
              <el-form-item label="状态">
                <el-input v-model="form.name" />
              </el-form-item>
              <div
                class="grid-content bg-purple"
              /></el-col>
          </el-row>
          <el-row>
            <el-col :span="8">
              <el-form-item label="单号">
                <el-input v-model="form.name" />
              </el-form-item>
              <div
                class="grid-content bg-purple"
              /></el-col>
            <el-col :span="8">
              <el-form-item label="申请日期">
                <el-input v-model="form.name" />
              </el-form-item>
              <div
                class="grid-content bg-purple-light"
              /></el-col>
            <el-col :span="8"> <div class="grid-content bg-purple" /></el-col>
          </el-row>
          <el-row class="zhuoyou">
            <el-col :span="17">
              <el-form-item>
                <el-button type="primary">新增</el-button>
              </el-form-item>
            </el-col>
            <el-col :span="7" class="youbian">
              <el-form-item>
                <el-button type="primary">查询</el-button>
              </el-form-item>
              <el-form-item>
                <el-button type="primary">重置</el-button>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
      <el-table
        ref="multipleTable"
        :header-cell-style="{ background: '#eef1f6', color: '#606266', height: '47.4px' }"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
      >
        <el-table-column type="selection" width="55" />
        <el-table-column prop="tradeType" label="交易类型" width="120" />
        <el-table-column prop="shopName" label="店铺名/用户名" width="120" />
        <el-table-column prop="order" label="单号" show-overflow-tooltip />
        <el-table-column prop="tsAmount" label="交易金额" show-overflow-tooltip />
        <el-table-column prop="date" label="交易时间" show-overflow-tooltip />
        <el-table-column fixed="right" label="确认退款率" width="200">
          <template #default="{row}">
            <el-button type="text" size="small" @click="handleClick(row)">编辑 </el-button>
            <el-button type="text" size="small" @click="deleteClick(row)">删除 </el-button>
            <el-button type="text" size="small">溯源分析</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        background
        :current-page.sync="currentPage1"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </el-card>
  </div>
</template>

<script>
import { withdraw } from '@/api/platformExpense';
export default {
  data() {
    return {
      tableData: [],
      form: {
        name: '',
      },
    };
  },
  created() {
    withdraw().then((res) => {
      this.tableData = res.data.data;
    });
  },
};
</script>

<style>
.zhuoyou {
  display: flex;
  justify-content: space-between;
}
.youbian {
  display: flex;
}
</style>
